<?php


namespace app\voip\model;


use think\Model;

class EAirlinesLog extends Model
{
    public function getCallStatusAttr($value)
    {

        $callStatus = [0=>'无效号码',1=>'未接通',2=>'挂断',3=>'成功呼叫'];
        return $callStatus[$value];
    }
    public function getSexAttr($value)
    {

        $sex = [0=>'未知',1=>'男',2=>'女'];
        return $sex[$value];
    }
    public function getMarkAttr($value)
    {

        $mark = [0=>'差',1=>'差',2=>'中',3=>'优'];
        return $mark[$value];
    }
    public function getIntentionAttr($value)
    {

        $intention= [0=>'无意愿',1=>'有意愿',2=>'非常有意'];
        return $intention[$value];
    }
    public function getAgeAttr($value)
    {
        if (!empty($value)){
            $sex =[$value=>date("Y-m-d",$value)];
        }else{
            $sex=[$value=>$value];
        }
        return $sex[$value];
    }
    public function getPhoneAttr($value)
    {
        if (!empty($value)){
            $phone =[$value=>encryptTel($value)];
        }else{
            $phone=[$value=>$value];
        }
        return $phone[$value];
    }
}